/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.Collection;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.OneToMany;

/**
 *
 * @author Tai Hock
 */
@Entity(name = "Category")
public class Category implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    
    private String description;
//    @OneToMany(targetEntity = CustomizeInformation.class, cascade = {CascadeType.ALL, CascadeType.REFRESH}, fetch = FetchType.EAGER)
//    private Collection<CustomizeInformation> customizeInfo;
    private boolean itineraryPlannerEnable;
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isItineraryPlannerEnable() {
        return itineraryPlannerEnable;
    }

    public void setItineraryPlannerEnable(boolean itineraryPlannerEnable) {
        this.itineraryPlannerEnable = itineraryPlannerEnable;
    }

//    public Collection<CustomizeInformation> getCustomizeInfo() {
//        return customizeInfo;
//    }
//
//    public void setCustomizeInfo(Collection<CustomizeInformation> customizeInfo) {
//        this.customizeInfo = customizeInfo;
//    }

    /**
     * @return the categoryId
     */
    public Long getId() {
        return id;
    }

    /**
     * @param categoryId the categoryId to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
